package com.yl.message.di

import com.yl.common.network.RetrofitManager
import com.yl.message.api.MessageApi
import com.yl.message.repo.MessageRepo
import com.yl.message.viewmodel.MessageViewModel
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module

/**
 * Created by stew on 8/5/22.
 * mail: stewforani@gmail.com
 */
val messageModule = module {
    single { RetrofitManager.getService(MessageApi::class.java) }
    single { MessageRepo(get()) }
    viewModel { MessageViewModel(get()) }
}